<?php

Yii::import('ext.qtip.QTip');
 
// qtip options
$opts = array(
    'position' => array(
        'corner' => array(
            'target' => 'rightMiddle',
            'tooltip' => 'leftMiddle'
            )
        ),
    'show' => array(
        'when' => array('event' => 'focus' ),
        'effect' => array( 'length' => 300 )
    ),
    'hide' => array(
        'when' => array('event' => 'blur' ),
        'effect' => array( 'length' => 300 )
    ),
    'style' => array(
        'color' => 'black',
        'name' => 'blue',
        'border' => array(
            'width' => 7,
            'radius' => 5,
        ),
    )
);
 
// apply tooltip on the jQuery selector (1 parameter)
QTip::qtip('.row input[title]', $opts);
?>